﻿using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
using ZLCMS.Data.Accessor;
using NHibernate.Criterion;
using ZLCMS.Data.Model;
using System.Collections.Generic;
using ZLCMS.Business.Util;

namespace ZLCMS.Web.Example
{
    public partial class MemberDefault : System.Web.UI.Page
    {
        protected MemberInfo _memberInfo;

        protected void Page_Load(object sender, EventArgs e)
        {
            string memberAccount;

            try
            {
                memberAccount = UserKit.GetUserAccount();
            }
            catch (System.Exception ex)
            {
                Response.Redirect("~/AgentSoft/UserLogin.aspx");
                return;
            }

            _memberInfo = new AccessorFactory().GetMemberInfoAccessor().GetByACCOUNT_ID(memberAccount);

            if (_memberInfo == null)
            {
                Response.Redirect("~/AgentSoft/UserLogin.aspx");
                return;
            }
        }
    }
}
